package ModelImplementation

import (
	"time"
)

type WeeklySchedule struct {
}

func (w *WeeklySchedule) IsPayDate(payDate time.Time) bool {
	return payDate.Weekday() == time.Friday
}

func (w *WeeklySchedule) GetPayPeriodStartDate(payPeriodEndDate time.Time) time.Time {
	return payPeriodEndDate.Add(-6)
}
